package com.eloo.otsclient.core;
import javax.swing.JPanel;

import com.eloo.otsclient.ui.OTSClientUI;
import com.gargoylesoftware.htmlunit.BrowserVersion;
import com.gargoylesoftware.htmlunit.CookieManager;
import com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController;
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.WebClientOptions;
import com.gargoylesoftware.htmlunit.WebWindowEvent;
import com.gargoylesoftware.htmlunit.WebWindowListener;
import com.gargoylesoftware.htmlunit.html.HtmlPage;



public class OTSClient {
//	private static final ThreadLocal < HtmlPage > queryPages = new ThreadLocal < HtmlPage > ();
	   static HtmlPage  querySingleAction;
	 
	   public static void main(String ags[]){ 
	        javax.swing.SwingUtilities.invokeLater(new Runnable() {
          public void run() { 
					 	try {
							initWeb(OTSClientUI.initframe("一笑订票"));
						} catch (Exception e) {
							// TODO Auto-generated catch block
							e.printStackTrace();
						}
				 
					
				
          }
      });
	      
	 }
	 
	 
	 
	 
	 public static void initWeb(JPanel jp) throws Exception{ 
		 	OTSWebClient otsWebClient=new OTSWebClient();
			OTSLogin otslogin=new OTSLogin();
			otslogin.initLoginPage();
			OTSQueryTicket otsquery=new OTSQueryTicket(otsWebClient); 
		
			
			   
	 } 
}
